package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_FWKDZT"
 *     
*/
public class XtglFwkdzt implements Serializable {

    /** identifier field */
    private String bh;

    /** nullable persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String kdBz;

    /** nullable persistent field */
    private String zt1;

    /** nullable persistent field */
    private String zt2;

    /** full constructor */
    public XtglFwkdzt(String bh, String dwbh, String kdBz, String zt1, String zt2) {
        this.bh = bh;
        this.dwbh = dwbh;
        this.kdBz = kdBz;
        this.zt1 = zt1;
        this.zt2 = zt2;
    }

    /** default constructor */
    public XtglFwkdzt() {
    }

    /** minimal constructor */
    public XtglFwkdzt(String bh) {
        this.bh = bh;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="BH"
     *         
     */
    public String getBh() {
        return this.bh;
    }

    public void setBh(String bh) {
        this.bh = bh;
    }

    /** 
     *            @hibernate.property
     *             column="DWBH"
     *             length="32"
     *         
     */
    public String getDwbh() {
        return this.dwbh;
    }

    public void setDwbh(String dwbh) {
        this.dwbh = dwbh;
    }

    /** 
     *            @hibernate.property
     *             column="KD_BZ"
     *             length="1"
     *         
     */
    public String getKdBz() {
        return this.kdBz;
    }

    public void setKdBz(String kdBz) {
        this.kdBz = kdBz;
    }

    /** 
     *            @hibernate.property
     *             column="ZT1"
     *             length="50"
     *         
     */
    public String getZt1() {
        return this.zt1;
    }

    public void setZt1(String zt1) {
        this.zt1 = zt1;
    }

    /** 
     *            @hibernate.property
     *             column="ZT2"
     *             length="50"
     *         
     */
    public String getZt2() {
        return this.zt2;
    }

    public void setZt2(String zt2) {
        this.zt2 = zt2;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("bh", getBh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglFwkdzt) ) return false;
        XtglFwkdzt castOther = (XtglFwkdzt) other;
        return new EqualsBuilder()
            .append(this.getBh(), castOther.getBh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getBh())
            .toHashCode();
    }

}
